<?php
class Page{

  /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
  /*  You must not move the EOD    */
  /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
  var $header;
  var $footer; 
  var $content;




  function Page(){
    $this->header = "";
    $this->footer = "";
    $this->content = "";
  }



  function setHeader($title){
    $headerStart = "";
    $headerStart.= <<<EOD
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
      <head>

      <meta http-equiv="Content-Language" content="en-gb" />
      <title>$title</title>

      <script type="text/javascript" src="utils.js"> </script>
      <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
EOD;
    
     $headerStart.="<link rel='stylesheet' type='text/css' href='style.css' />\n";

$headerEnd = "";
$headerEnd.= <<<EOD
 </head>
 <body>
	<div id="header">
<h1>Kaptcha </h1>
 <div id="menu">
  <ul id="nav">
   <li><a href="#">Exit</a></li>
  </ul>
 </div>
</div>
<div id="content">
<div id="right">
EOD;

      $this->header.= $headerStart . $headerEnd; 
  }

  // Generates the bottom of the page
  function setFooter(){
    $this->footer.= <<<EOD
</div>
</div>
</body>
</html>
EOD;
  }
  
  function setContents($con){
  	$this->content = $con;
  }
  
  function getPage(){
  	return $this->header.$this->content.$this->footer;
  }
  
  
  function getHeader(){
  	return $this->header;
  }
  
  
  function getContents(){
  	return $this->contents;
  }
  
  
  function getFooter(){
  	return $this->footer;
  }
}
?>
